<?php
namespace app\adminapi\controller;

use app\adminapi\logic\ConfigLogic;
use app\adminapi\logic\setting\lang\LangLogic;

/**
 * 配置控制器
 * Class ConfigController
 * @package app\adminapi\controller
 */
class ConfigController extends BaseAdminApiController
{
    public $notNeedLogin = ['getConfig','getLangConfig'];


    /**
     * @notes 基础配置
     * @return \support\Response
     */
    public function getConfig()
    {
        $data = ConfigLogic::getConfig();
        return $this->data($data);
    }

    /**
     * @notes 获取语言配置
     * @return \support\Response
     */
    public function getLangConfig()
    {
        $data = LangLogic::getLangConfig();
        return $this->data($data);
    }

}